package com.xy.util;

import java.util.concurrent.ConcurrentHashMap;

/**
 * Jedis的CATEGORY都应该在这里定义。
 *
 */
public class RedisCategory {

	public static final String PK_VALUE = "pkvalue";
	public static final String LEVELUP_ACTIVITY_REWARD = "levelupactivityreward";// 等级奖励
	public static final String SHABOKKING = "shabokking";// 沙巴克占领皇宫
	public static final String SHABOKENDTIME = "shabokendtime";// 沙巴克结束时间
	public static final String SHABOKREWARD = "shabokreward";// 沙巴克会长奖励领取
	
	public static final String VERSIONS = "versions";
	public static final String ENROLLLIST = "enrolllist";// 沙巴克报名列表
	public static final String HEROOFDEERREWARD = "heroofdeerreward";// 群雄逐鹿领取过奖励的
	public static final String ROLEPOWER = "rolePower";// 玩家战斗力
	public static final String RECHARGEREINFO = "rechargereinfo";// 测试服充值记录 用于返利
	public static final String SERVER_REBATE="server_rebate";//返现倍数
    
//	public static final String SERVER_TYPE = "server_type";//服务器类型： 0测试服	1正式服
//    public static final String SERVER_STATE = "server_state";// 服务状态新服老服
//    public static final String SERVER_STATE_UPTIME="server_state_uptime";//服务器类型：更改时间
//    public static final String SERTEST_ANNOUN = "testSerAnnoun";//测试服统一公告
	
    public static final String SHABOKE_ONESTARTTIME="shaboke_onestarttime";//沙巴克 第一次开启时间
    public static final String ChargeState="chargeState";//充值状态
    public static final String STATISTIC="statistic";//统计
    public static final String FIRSTAWARD="firstaward";//首爆奖励
    public static final String LEVEL_CHAMPION = "levelChampion";	//天下第一
    public static final String SERVER_END_TIME = "serverendtiem";	//服务器停服时间
    public static final String SHABOKE_HOLD_DAY="shaboke_hold_day";//沙巴克连续占领天数
    public static final String SHABOKACTIVITY = "shabokActivity";// 是否允许全部攻沙

	/** 所有全局category都要添加到这里面，这里面的category都是不分区的 */
	public static final ConcurrentHashMap<String, String> globalCategory = new ConcurrentHashMap<String, String>();
	/**暂时处理下 平台版 全局的 例如 充值方式*/
	public static final ConcurrentHashMap<String, String> gmCategory = new ConcurrentHashMap<String, String>();

	static {
		globalCategory.put(RedisCategory.PK_VALUE, RedisCategory.PK_VALUE);
		globalCategory.put(RedisCategory.LEVELUP_ACTIVITY_REWARD, RedisCategory.LEVELUP_ACTIVITY_REWARD);
		globalCategory.put(RedisCategory.VERSIONS, RedisCategory.VERSIONS);
		globalCategory.put(RedisCategory.ROLEPOWER, RedisCategory.ROLEPOWER);
//		globalCategory.put(RedisCategory.SERTEST_ANNOUN, RedisCategory.SERTEST_ANNOUN);
//		globalCategory.put(RedisCategory.SERVER_TYPE, RedisCategory.SERVER_TYPE);
		globalCategory.put(RedisCategory.RECHARGEREINFO, RedisCategory.RECHARGEREINFO);
		globalCategory.put(RedisCategory.SERVER_REBATE, RedisCategory.SERVER_REBATE);
		globalCategory.put(RedisCategory.STATISTIC, RedisCategory.STATISTIC);
//		globalCategory.put(RedisCategory.SERVER_STATE, RedisCategory.SERVER_STATE);
//		globalCategory.put(RedisCategory.SERVER_STATE_UPTIME, RedisCategory.SERVER_STATE_UPTIME);
	}
	static {
		gmCategory.put(RedisCategory.ChargeState, RedisCategory.ChargeState);
	}
}
